{% extends 'ApiCloud/Base/layout.common.html.twig' %}

{% block main %}
    {% include "ApiCloud/Base/inc.head.light.html.twig" with {title:"派工管理",back:1} %}
    {% include "ApiCloud/Base/inc.site.base.html.twig" with {site:"项目流转"} %}

    <div class="bc13">
        <mu-tabs :value.sync="tab" color="amber600" indicator-color="amber600" center inverse>
            <mu-tab>未分配人员</mu-tab>
            <mu-tab>已分配人员</mu-tab>
        </mu-tabs>
    </div>

    <div class="fs10 pad5" v-if="tab == 0">
        <div class="bcf c11 fs8 pad5 bdbda ofe mart5" v-for="item in wait">

            <div class="fs14 padb5">[[item.SiteUserWorkLog_name]]</div>
            <div class="flrc">
                <div class="flex-r flex1">
                    <div class="">签到：</div>
                    <div v-if="boole(item.SiteUserWorkLog_start_Time)">[[item.SiteUserWorkLog_start_Time]]</div>
                    <div v-if="!boole(item.SiteUserWorkLog_start_Time)">
                        <span class="c2 fa fa-warning"></span>
                    </div>
                </div>
                <div class="flex-r flex1">
                    <div class="">签退：</div>
                    <div v-if="boole(item.SiteUserWorkLog_end_Time)">[[item.SiteUserWorkLog_end_Time]]</div>
                    <div v-if="!boole(item.SiteUserWorkLog_end_Time)">
                        <span class="c3 fa fa-warning"></span>
                    </div>
                </div>
            </div>
            <div class="tar padt5 padb5">
                <mu-button color="warning" @click="delLog(item.SiteUserWorkLog_id)">删除记录</mu-button>
                <mu-button color="success" @click="joinSite(item.SiteUserWorkLog_id)">分配到当前项目</mu-button>
            </div>
        </div>
    </div>
    <div class="fs10 pad5" v-if="tab == 1">
        <div class="bc13 c12 fs8 pad5 bdbda ofe mart5" v-for="item in done">

            <div class="fs14 padb5">[[item.SiteUserWorkLog_name]]</div>
            <div class="c11 fs10 ofe">工作任务：[[item.Site_name]]</div>
            <div class="flrc">
                <div class="flex-r flex1">
                    <div class="">签到：</div>
                    <div v-if="boole(item.SiteUserWorkLog_start_Time)">[[item.SiteUserWorkLog_start_Time]]</div>
                    <div v-if="!boole(item.SiteUserWorkLog_start_Time)">
                        <span class="c2 fa fa-warning"></span>
                    </div>
                </div>
                <div class="flex-r flex1">
                    <div class="">签退：</div>
                    <div v-if="boole(item.SiteUserWorkLog_end_Time)">[[item.SiteUserWorkLog_end_Time]]</div>
                    <div v-if="!boole(item.SiteUserWorkLog_end_Time)">
                        <span class="c3 fa fa-warning"></span>
                    </div>
                </div>
            </div>
            <div class="tar padt5 padb5"  v-if="!boole(item.SiteUserWorkLog_end_Time)">
                {#<mu-button color="warning" @click="delLog(item.SiteUserWorkLog_id)">删除记录</mu-button>#}
                <mu-button color="" @click="clearSite(item.SiteUserWorkLog_id)">改为未分配人员</mu-button>
            </div>
        </div>
    </div>
{% endblock %}
